<%@include file="_header.jspf" %>
<%@page import="com.spartancoder.accommodation.models.Conflicts" %>
<%@page import="com.spartancoder.accommodation.beans.ConflictBean" %>
<h2>Listare conflicte</h2>

<p>Camerele pentru care exista mai multe cereri decat locuri disponibile</p>

<table>
    <thead>
        <tr>
            <th>Camin</th>
            <th>Camera</th>
        </tr>
    </thead>
    <tbody>
    <% for(ConflictBean cb : Conflicts.find()) { %>
        <tr>
            <td><%=cb.getPlace().getName()%></td>
            <td><%=cb.getRoom()%></td>
        </tr>
    <% } %>
    </tbody>
</table>

<%@include file="_footer.jspf" %>